package com.bjsdzk.collector.entity.response;

import lombok.Getter;

public enum ResultCode {
    SUCCESS(200, "操作成功."),
    FAILURE(201, "操作失败."),
    PARAM_ERROR(202, "参数错误."),
    UNKNOWN_ERROR(203, "未知错误."),
    DATABASE_ERROR(204, "数据库操作异常."),
    ILLEGAL(205, "非法操作."),
    VALIDATION(206, "校验不合法.");
    @Getter
    private Integer code;
    @Getter
    private String msg;

    ResultCode() {
    }

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
